home *** CD-ROM | disk | FTP | other *** search
/ Get a Grip Tennis by Wilson / Get a Grip Tennis by Wilson.iso / pc / main.dxr / 00008_Play Movie X.ls < prev    next >
Encoding:
Text File  |  2003-08-12  |  1.6 KB  |  34 lines

  1. property myTargetMovie
  2.  
  3. on getBehaviorDescription me
  4.   return "PLAY MOVIE X" & RETURN & RETURN & "Drop this behavior onto a Sprite, the Stage or into the Script Channel of the Score to start a sequence and move the playback head to a given movie." & RETURN & RETURN & "Use the 'Play Done' behavior to end the sequence and to tell the playback head to return to the current frame." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Play which movie on mouseUp?" & RETURN & RETURN & "If the target movie is in the same folder as the current movie then you need only enter the name of the movie. " & "If the movie is in a different folder, then enter the full or relative path name to the target movie." & RETURN & RETURN & "ASSOCIATED BEHAVIORS:" & RETURN & "+ Play Frame X" & RETURN & "+ Play Done"
  5. end
  6.  
  7. on getBehaviorTooltip me
  8.   return "Use with graphic members or as a frame behavior. " & "Jumps the playback head to the given movie. " & "Acts on mouseUp or on exitFrame, depending on whether you drag it to a sprite or to the Stage. " & "Use the Play Done behavior to return to this frame."
  9. end
  10.  
  11. on mouseUp me
  12.   play movie myTargetMovie
  13. end
  14.  
  15. on exitFrame me
  16.   if the currentSpriteNum = 0 then
  17.     play movie myTargetMovie
  18.   end if
  19. end
  20.  
  21. on isOKToAttach me, aSpriteType, aSpriteNum
  22.   return 1
  23. end
  24.  
  25. on getPropertyDescriptionList me
  26.   if the currentSpriteNum = 0 then
  27.     theComment = "Play which movie on exitFrame?"
  28.   else
  29.     theComment = "Play which movie on mouseUp?"
  30.   end if
  31.   theComment = theComment & RETURN & "(Include path if necessary)."
  32.   return [#myTargetMovie: [#comment: theComment, #format: #string, #default: "Type the name of your movie here"]]
  33. end
  34.